package com.Laboratory.workBench.service;

import com.Laboratory.utilPojo.projectWithState;
import com.Laboratory.utilPojo.projectWithUrl;
import com.Laboratory.workBench.pojo.file;
import com.Laboratory.workBench.pojo.project;
import com.Laboratory.workBench.pojo.teacher;

import java.util.List;
import java.util.Map;

/**
 * @Author acok
 * @description: 项目预约服务接口
 * @Date 2022/12/25 9:12
 * @Version 1.0
 */
public interface projectService {
    //创建项目申请前，获取指导教师列表
    List<teacher> getTeacherListByApply();
    //创建项目申请
    int insertProjectApply(project project);
    //将文件保存至服务器指定位置
    int saveFileToLocalService(List <file>FileList);
    //获取项目-指导教师关系统计数据
    List<Map<Object,Object>> getTeacherPopularity();
    //获取项目开支等级统计数据
    List<Map<Object,Object>> getCostRankData();
    //获取项目以及项目状态
    List<projectWithState> getProjectList();
    //更新项目相关文件缓存
    void updateRedisCacheByInsertApply(List<projectWithUrl> list);
}
